#!/bin/bash

# this deliver precompiled package
# linux
# x86_64

bld_dir=/tmp/adapt/hdf5

mkdir -p $bld_dir
pushd $bld_dir # on local disk everything is lighting fast.. (in comp. to nfs)

#1. get sources

# first the lifev package
wget -nc http://www.hdfgroup.org/ftp/HDF5/current/bin/linux-x86_64/hdf5-1.8.12-linux-x86_64-shared.tar.gz
tar kxzf hdf5-1.8.12-linux-x86_64-shared.tar.gz 2>&- #keep files if they exist (do not overwrite)

cp hdf5-1.8.12-linux-x86_64-shared/lib/lib* ~/adapt/soft/lib
cp hdf5-1.8.12-linux-x86_64-shared/include/* ~/adapt/soft/include

popd

exit 0
